//
//  UIImage+CFProgressHUD.m
//  CFMProgressHUD_Example
//
//  Created by 千域互联 on 2019/7/29.
//  Copyright © 2019 Horcrux91. All rights reserved.
//

#import "UIImage+CFProgressHUD.h"

@implementation UIImage (CFProgressHUD)

+ (UIImage *)cf_hud_imageWithName:(NSString *)imageName
{
    NSString *imgName = [NSString stringWithFormat:@"CFMProgressHUD.bundle/%@",imageName];
    return [UIImage imageNamed:imgName];
}

+ (NSArray<UIImage *> *)cf_hud_loadingImages
{
    NSMutableArray *tempImageArray = [NSMutableArray array];
    for (NSInteger i = 1; i <= 108; i ++) {
        NSString *imageNameString = [NSString stringWithFormat:@"cf_hud_loading_image_%ld",(long)i];
        UIImage *image = [self cf_hud_imageWithName:imageNameString];
        [tempImageArray addObject:image];
    }
    return tempImageArray;
}

@end
